package com.dcy.daily.skill.log4j2.official.foo;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @author duanchunyu
 * @version 1.0.0
 * @Description log4j2官网测试
 * @createTime 2021年05月24日 16:17:00
 */
public class Bar {
    static final Logger logger = LogManager.getLogger(Bar.class.getName());
    public boolean doIt() {
        logger.entry();
        logger.error("Did it again!");
        return logger.exit(false);
    }
}
